<span>
  <span tal:define="global true php:true; global false php:false"/>
  <div tal:omit-tag="true">tag 1</div>
  <div tal:omit-tag="false">tag 2</div>
</span>
